import { createSlice, type PayloadAction } from "@reduxjs/toolkit";

const appSLice = createSlice({
  name: "app",

  initialState: {
    collapsed: false,
  },

  reducers: {
    setCollapsed(state, { payload }: PayloadAction<boolean>) {
      state.collapsed = payload;
    },
  },
});

export const { setCollapsed } = appSLice.actions;

export default appSLice.reducer;
